/**
 * @Auto generation code
 * Dian Ping Controller
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, body, loading
 * 取消订单 - POST
 */
export const cancelOrder = async (loading) => {
	return await request.post('/dp-api/cancelOrder', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 创建订单 - POST
 */
export const createOrder = async (loading) => {
	return await request.post('/dp-api/createOrder', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 订单支付 - POST
 */
export const orderPaied = async (loading) => {
	return await request.post('/dp-api/orderPaied', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 获取可以技师列表 - POST
 */
export const queryAvailableTechnicians = async (loading) => {
	return await request.post('/dp-api/queryAvailableTechnicians', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 获取可用时间列表 - POST
 */
export const queryAvailableTimeslots = async (loading) => {
	return await request.post('/dp-api/queryAvailableTimeslots', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 获取产品列表，现在默认是产品ID为1 - POST
 */
export const queryProductList = async (loading) => {
	return await request.post('/dp-api/queryProductList', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 获取技师列表 - POST
 */
export const queryTechnicianList = async (loading) => {
	return await request.post('/dp-api/queryTechnicianList', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 服务确认 - GET
 */
export const orderServerConfirm = async (, {// path params
		id   // id ,必填 
	
}, loading) => {
	return await request.get('/dp-api/server-confirm/${id}', {
		
	}, loading)
}

